package com.iro.blog.web;

import com.iro.blog.Service.BlogsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class AboutshowController {
    @Autowired
    private BlogsService blogsService;
    @GetMapping("/about")
    public String about(Model model){
        model.addAttribute("recommendBlogs",blogsService.listRecommendBlogTop(1));
        return "about";
    }
}
